//
//  Config.m
//  TNS
//
//  Created by parkin on 16/1/22.
//  Copyright © 2016年 zhongyan. All rights reserved.
//

#import "Config.h"

#define SVProgress_Background [UIColor colorWithRed:0.1f green:0.1f blue:0.1f alpha:0.9f]

@interface Config ()

@end

@implementation Config
+(void) showMessage: (NSString *)string {
    [SVProgressHUD setBackgroundColor:SVProgress_Background];
    
    [SVProgressHUD setForegroundColor:[UIColor whiteColor]];
    [SVProgressHUD setInfoImage:[UIImage imageNamed:@"111"]];
    [SVProgressHUD showInfoWithStatus:string];
    
}
+(void)showActivityView
{
    [SVProgressHUD setBackgroundColor:[UIColor blackColor]];
    [SVProgressHUD setForegroundColor:[UIColor whiteColor]];
    [SVProgressHUD showWithStatus:@"加载中..." maskType:SVProgressHUDMaskTypeNone];
}

+(void)hideActivityView
{
    [SVProgressHUD dismiss];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
